package com.chinaisafe.module.user.request;

import com.chinaisafe.base.common.vo.request.PageReqVo;
import com.chinaisafe.base.common.validated.UpdateGroup;
import jakarta.validation.constraints.NotNull;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * SysRoleReqVO
 * Description：角色请求值对象
 *
 * @author tby
 * @date  2024-07-15 17:11:11
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@Schema(name = "SysRoleReqVO", description = "角色请求值对象")
public class SysRoleReqVO extends PageReqVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键id")
    @NotNull(groups = UpdateGroup.class, message = "主键id不能为空" )
    private Long id;

    @Schema(description = "乐观锁版本")
    private Integer version;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "角色类型:超级管理员/平台管理员/系统管理员")
    private String type;

    @Schema(description = "是否启用")
    private Boolean enable;



}
